from collections import Counter


# l = "aaadddddcdcdcfdfgeg"
# c = Counter(l)
# dic = dict(c)
# print(dic.values())
# print(dict(c))
# print(lst := sorted(c.items(), key=lambda x: x[1], reverse=True))
# print(dict(lst))

lst = [1, 2, 2, 2, 2, 2, 3, 3, 4, 5, 5, 5, 5, 6]
c = Counter(lst)
# print(c[5])
# print(c.most_common(1)[0][0])
d = dict(c)
print(d)
l_new = max(d, key=lambda x: d[x])
print(l_new)